package com.fiveGroup.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fiveGroup.mapper.CartMapper;
import com.fiveGroup.pojo.Cart;
import com.fiveGroup.pojo.vo.CartVo;
import com.fiveGroup.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 86188
 * @description 针对表【cart(购物车表)】的数据库操作Service实现
 * @createDate 2025-09-26 15:01:12
 */
@Service
public class CartServiceImpl extends ServiceImpl<CartMapper, Cart> implements CartService {

    @Autowired
    CartMapper cartMapper;

    @Override
    public List<CartVo> selectCartWithProduct(Long userId) {
        return cartMapper.selectCartWithProduct(userId);
    }
}



